import request from "@/utils/request";

// banner
export function getBannerList(): any {
  return request("api/banner?page=1&limit=10", "POST", null);
}

// 首页列表
export function getPublishList(data: any): any {
  return request("api/publish/list", "POST", data);
}
// 发布任务
export function publishOperate(data: any): any {
  return request("api/publish/add", "POST", data);
}

// 任务详情

// api/publish/details
export function getPublishDetails(data: any): any {
  return request("api/publish/details", "POST", data);
}


// 求助单状态变更

export function publishStatus(data: any): any {
  return request("api/publish/publish_status", "POST", data);
}


// 编辑

export function editFun(data: any): any {
  return request("api/publish/edit", "POST", data);
}